﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyLab
{
    public abstract class MenuItem
    {
        public string Text { get; set; }

        public string ActionName { get; set; }

        public string ControllerName { get; set; }

        public bool IsCurrent { get; set; }

        public abstract string RenderItem(string currentItemCssClass);
    }

    public class MenuItemCollection : List<MenuItem> 
    {
        public MenuItemCollection()
        { }

        public MenuItemCollection(params MenuItem[] items)
        {
            if (items.Length > 0)
            {
                this.AddRange(items);
            }
        }
    }
}
